<template>
  <div class="">
      {{$store.state.str}}
  </div>
</template>

<script>
import { ref, reactive, toRefs } from "vue";
export default {
  props:{
    str: String
  },
  setup() {
    // const str = ref('我是第2个组件')
    // return {
    //   str
    // }
  },
};
</script>
<style lang="scss" scoped>
</style>